add_executable(rtmpServer main.cpp)

# 链接库
target_link_libraries(rtmpServer PRIVATE ws2_32)

# 复制媒体文件到构建目录
configure_file(${PROJECT_SOURCE_DIR}/data/input.h264 ${CMAKE_CURRENT_BINARY_DIR}/data/input.h264 COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/data/input.aac ${CMAKE_CURRENT_BINARY_DIR}/data/input.aac COPYONLY)